package com.ug.system.entity.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @Author LY
 * @create 2024/7/17 17:10
 * @Description 菜单树
 */
@Getter
@Setter
public class SysMenuTreeVO {

    /**编号*/
    @JsonSerialize(using = ToStringSerializer.class)
    private Long menuId;
    /**父ID*/
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;
    /**名称*/
    private String name;
    /**url*/
    private String path;
    /**图标*/
    private String icon;
    /**排序*/
    private int sort;
    /**组件*/
    private String component;
    /**权限标识*/
    private String permission;
    /**类型（1菜单 2页面 3按钮）*/
    private String type;
    /**子菜单*/
    private List<SysMenuTreeVO> children;
}
